﻿using DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBQLTV;

namespace BUS
{
    public class TheLoaiSachBUS
    {
        private TheLoaiSachDAO _Theloaisach;
        public TheLoaiSachBUS()
        {
            _Theloaisach = new TheLoaiSachDAO();
        }
        public List<string> GetListTheLoaiSach()
        {
            return _Theloaisach.GetListTheLoaiSach();
        }
        public bool InsertTheLoaiSach(string TenTheLoaiSach)
        {
            return _Theloaisach.InsertTheLoaiSach(TenTheLoaiSach);
        }
        public bool DeleteTheLoaiSach(string TenTheLoaiSach)
        {
            return _Theloaisach.DeleteTheLoaiSach(TenTheLoaiSach);
        }
        public THELOAISACH GetTheLoaiByKey(int MaTheLoai)
        {
            return _Theloaisach.GetTheLoaiByKey(MaTheLoai);
        }
    }
}
